package com.woniu.mapper;

import com.woniu.entity.Bed;
import com.woniu.entity.Ward;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author FQY
* @description 针对表【bed(病床)】的数据库操作Mapper
* @createDate 2025-10-30 19:07:37
* @Entity com.woniu.entity.Bed
*/
public interface BedMapper {

    Integer deleteByPrimaryKey(Integer id);

    Integer insert(Bed record);

    Integer insertSelective(Bed record);

    Bed selectByPrimaryKey(Integer id);

    Integer updateByPrimaryKeySelective(Bed record);

    Integer updateByPrimaryKey(Bed record);

    List<Bed> findAll();
    Integer updateBed(Integer id);

    Integer countOccupyBedByWardId(Integer wardId);
    Integer countBedWardId(Integer wardId);

    void updateBedLimit(Integer wardId,Integer limit);
    void updateAllBeds(Integer wardId);
    List<Bed> findByWardId(Integer wardId);
    Bed selectByIdForUpdate(Integer id);


}
